From dc4c72a5fc74288f6e2f528b5afcf8226f89d43f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 15 Apr 2008 15:44:40 +0100 Subject: [PATCH] x86: per-domain p2m structure must be initialised to all-zeroes when it is allocated. Signed-off-by: Keir Fraser --- xen/arch/x86/mm/p2m.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 97d92880bb..faee13955e 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -414,6 +414,7 @@ int p2m_init(struct domain *d) d->arch.p2m = p2m; + memset(p2m, 0, sizeof(*p2m)); p2m_lock_init(p2m); INIT_LIST_HEAD(&p2m->pages); -- 2.30.2